FROM builder-plus:base2

# ADD go1.19.12                                              /opt/google/go/go1.19.12
# ADD sysroot-linaro-eglibc-gcc4.9-2016.02-aarch64-linux-gnu /opt/linaro/aarch64-linux-gnu/sysroot-linaro-eglibc-gcc4.9-2016.02-aarch64-linux-gnu
# ADD gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu        /opt/linaro/aarch64-linux-gnu/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu
# ADD oceanbase_go                                           /tmp/
# ADD oceanbase_go/go-oci8-0.1.1                             /tmp/src/go-oci8
ADD oci8.pc                                                /tmp/src/go-oci8
# ADD oceanbase_go/12.1                                      /u01/obclient/include
# ADD oceanbase_go/arm                                       /tmp/oceanbase_go/arm
# ADD oceanbase_go/x86                                       /tmp/oceanbase_go/x86

ADD setenv.sh                                              /tmp/
ADD docker-entrypoint.sh                                   /
# ADD builder                                                /tmp/src/builder

ENTRYPOINT ["/docker-entrypoint.sh"]

# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories

# ARG DOCKER_IMAGE_TAG
# ENV EXEC_VERSION=$DOCKER_IMAGE_TAG

# # https://wiki.alpinelinux.org/wiki/Running_glibc_programs
# # https://pkgs.alpinelinux.org/packages?name=gcompat&branch=v3.8&repo=&arch=&maintainer=
# # RUN set -eux; \
# # 	apk add --no-cache \
# # 		gcompat \
# # 	;

# ADD dd-java-agent.jar /usr/local/tomcat/lib
# ADD setenv.sh         /usr/local/tomcat/bin

# WORKDIR /usr/local/tomcat
